//
//  CAShapeLayer+WavePath.h
//  高仿暴走斗图
//
//  Created by key on 16/9/26.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import <QuartzCore/QuartzCore.h>

typedef NS_ENUM(NSUInteger, kWavePathParameterType) {
    
    kWavePathParameterTypeWaveCurrentY,             //波纹当前y点位置
    kWavePathParameterTypeWaveWidth,                //波纹宽度
    kWavePathParameterTypeWaveCycle,                //波纹周期
    kWavePathParameterTypeWaveOffsetX,              //波纹当前x向前的偏移量
    kWavePathParameterTypeWaveInViewHeight,         //波纹高度
    kWavePathParameterTypeWaveAmplitude,            //波纹振幅
    kWavePathParameterTypeWaveFunction,             //波纹函数
};

typedef NS_ENUM(NSUInteger, kWavePathFunctionType) {
    
    kWavePathFunctionTypeNone,
    kWavePathFunctionTypeSin,
    kWavePathFunctionTypeCos,
};

@interface CAShapeLayer (WavePath)

- (void)updateWavePathForParameter:(NSDictionary *)param wavePathcompleted:(void(^)(CGMutablePathRef path))completed;

@end
